package com.github.nacosone.core;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@NoArgsConstructor
@AllArgsConstructor
@Data
@ApiModel(description = "分页查询对象", value = "PageRequestDto")
public class PageRequestDto<T> implements Serializable {
    //当前页码
    @ApiModelProperty(notes = "当前页码", required = false)
    private Long page = 1L;
    //每页显示的行
    @ApiModelProperty(notes = "每页显示的行", required = false)
    private Long size = 10L;
    //请求体实体对象
    @ApiModelProperty(notes = "请求体实体对象", required = false)
    private T body;
}
